<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vuejs测试</title>
  <script src="vue/vue.js"></script>
</head>
<body>
  <div id="app">
      <input type="text" v-model="age">
      <button v-on:click="age++">点我</button>
    <h2>{{name}}年龄是{{age}}</h2>
  </div>
<script type="text/javascript">
  var app=new Vue({
      el:"#app",
      data:{
          name:"张三",
          age:1
      }
  })
</script>
</body>
</html>